<?php



class InvoiceAttachmentDrMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.InvoiceAttachmentDrMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(InvoiceAttachmentDrPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(InvoiceAttachmentDrPeer::TABLE_NAME);
		$tMap->setPhpName('InvoiceAttachmentDr');
		$tMap->setClassname('InvoiceAttachmentDr');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('INVOICE_IDEN', 'InvoiceIden', 'VARCHAR' , 'invoice', 'INVOICE_IDEN', true, 20);

		$tMap->addPrimaryKey('ATTACHMENT_IDEN', 'AttachmentIden', 'VARCHAR', true, 20);

		$tMap->addColumn('DR_NUMBER', 'DrNumber', 'VARCHAR', true, 15);

		$tMap->addColumn('DR_DATE', 'DrDate', 'DATE', true, null);

		$tMap->addColumn('RECEIVED_BY', 'ReceivedBy', 'VARCHAR', true, 50);

		$tMap->addColumn('DATE_RECEIVED', 'DateReceived', 'DATE', true, null);

	} 
} 